package com.service;

import java.util.List;

import com.base.BaseService;
import com.bean.RoleInfo;
import com.bean.RulerInfo;


public interface RoleService  {
	public RoleInfo get(Integer id)throws Exception;
	public List<RoleInfo> query(RoleInfo roleInfo) throws Exception;
	public List<RulerInfo> beforeUpdate(int id) throws Exception;
	public String update(RoleInfo roleInfo,String rightString, List<RulerInfo> rulerList) throws Exception;
	public String delete(int id, Integer flag) throws Exception;
	public String beforeAdd() throws Exception;
	public String add(RoleInfo roleInfo,String rightString, List<RulerInfo> rulerList) throws Exception;
	public List findByProperty(String propertyName, Object value);
}
